package com.os4j.model;

import java.io.Serializable;

public class AttributeValue implements Serializable {

  private static final long serialVersionUID = -8930063323571154023L;

  private Long id;
  private Long attributeDefinitionId;

  @Override
  public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((attributeDefinitionId == null) ? 0 : attributeDefinitionId.hashCode());
	return result;
  }

  @Override
  public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	AttributeValue other = (AttributeValue) obj;
	if (attributeDefinitionId == null) {
		if (other.attributeDefinitionId != null)
			return false;
	} else if (!attributeDefinitionId.equals(other.attributeDefinitionId))
		return false;
	return true;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getAttributeDefinitionId() {
    return attributeDefinitionId;
  }

  public void setAttributeDefinitionId(Long attributeDefinitionId) {
    this.attributeDefinitionId = attributeDefinitionId;
  }
}
